package com.saas.sms.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.saas.sms.domain.SmsVo;
import com.saas.sms.service.IMailSenderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @ClassName MailSendServiceImpl
 * @Description TODO
 * @Author jm
 * @Date 2022/4/18
 * @Version v1.0
 */
@Slf4j
@Service
public class MailSendServiceImpl implements IMailSenderService {

    @Async("mailTaskExector")
    public void emailRealTimeReport(SmsVo vo) {
        System.out.println("执行emailRealTimeReport：" + JSONObject.toJSONString(vo));
    }
}
